{eval
    $_HEAD[title] = "我的头像";
}
{include mobile_template('header')}
<div class="panel-comm  panel-default panel-fullsize">
    <div class="panel-heading  txt-richtxt center">
        <a href="{url member/mobile/do/face}"><img src="{print get_face2($user->uid,'big')}" alt="$user->username"></a>
    </div>
    <div class="panel-body">
        <!--{if defined('IN_UC')}-->
            <!--{if is_ios()}-->
                <p class="center">暂不支持苹果IOS系统头像上传。</p>
            <!--{else}-->
                <!--{print uc_avatar($user->uid)}-->
            <!--{/if}-->
        <!--{else}-->
        <div class="form-submit">
            <div class="btn-group-vertical full-width">
                <button type="button" name="upload" class="btn btn-mycolor">上传头像</button>
            </div>
        </div>
        <!--{/if}-->
    </div>
</div>
<form class="none" name="frm_upload_face" action="" method="post" enctype="multipart/form-data">
    <input type="file" name="face">
    <input type="hidden" name="dosubmit" value="Yes">
</form>
<script>
$(document).ready(function() {
    $('button[name="upload"]').click(function(event) {
        $('input[name="face"]').click().change(function(event) {
            if($(this).val()) {
                $('form[name="frm_upload_face"]')[0].submit();
            }
        });
    });
});
</script>
{include mobile_template('footer')}